package com.aooci.ordercat.vo;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

@SuppressWarnings("restriction")
public class RecetteVo {
	
	private final StringProperty index;
	private final StringProperty cash;
	private final StringProperty card;
	private final StringProperty cheque;
	private final StringProperty tva6;
	private final StringProperty tva12;
	private final StringProperty tva21;
	private final StringProperty paidTotal;
	
	public RecetteVo() {
		this(0,0,0,0,0,0,0,0);
	}
	
	public RecetteVo(int index, float cash,
			float card, float cheque, float tva6,
			float tva12, float tva21, float paidTotal) {
		super();
		this.index = new SimpleStringProperty(index+"");
		this.cash = new SimpleStringProperty(Float.toString(cash));
		this.card = new SimpleStringProperty(Float.toString(card));
		this.cheque = new SimpleStringProperty(Float.toString(cheque));
		this.tva6 = new SimpleStringProperty(Float.toString(tva6));
		this.tva12 = new SimpleStringProperty(Float.toString(tva12));
		this.tva21 = new SimpleStringProperty(Float.toString(tva21));
		this.paidTotal = new SimpleStringProperty(Float.toString(paidTotal));
	}

	public int getIndex() {
		return Integer.parseInt(index.get());
	}

	public void setIndex(int index) {
		this.index.set(index+"");
	}
	
	public StringProperty indexProperty() {
		return index;
	}

	public float getCash() {
		return Float.parseFloat(cash.get());
	}

	public void setCash(float cash) {
		this.cash.set(Float.toString(cash));
	}
	
	public StringProperty cashProperty() {
		return cash;
	}
	
	public float getCard() {
		return Float.parseFloat(card.get());
	}

	public void setCard(float card) {
		this.card.set(Float.toString(card));
	}
	
	public StringProperty cardProperty() {
		return card;
	}
	
	public float getCheque() {
		return Float.parseFloat(cheque.get());
	}

	public void setCheque(float cheque) {
		this.cheque.set(Float.toString(cheque));
	}
	
	public StringProperty chequeProperty() {
		return cheque;
	}
	
	public float getTva6() {
		return Float.parseFloat(tva6.get());
	}

	public void setTva6(float tva6) {
		this.tva6.set(Float.toString(tva6));
	}
	
	public StringProperty tva6Property() {
		return tva6;
	}
	
	public float getTva12() {
		return Float.parseFloat(tva12.get());
	}

	public void setTva12(float tva12) {
		this.tva12.set(Float.toString(tva12));
	}
	
	public StringProperty tva12Property() {
		return tva12;
	}
	
	public float getTva21() {
		return Float.parseFloat(tva21.get());
	}

	public void setTva21(float tva21) {
		this.tva21.set(Float.toString(tva21));
	}
	
	public StringProperty tva21Property() {
		return tva21;
	}
	
	public float getPaidTotal() {
		return Float.parseFloat(paidTotal.get());
	}

	public void setPaidTotal(float paidTotal) {
		this.paidTotal.set(Float.toString(paidTotal));
	}
	
	public StringProperty paidTotalProperty() {
		return paidTotal;
	}
	
	
}
